﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/MasterPgAdmin.master" AutoEventWireup="true" CodeFile="ExpCodeDefinition.aspx.cs" Inherits="Admin_ExpCodeDefinition" %>

<asp:Content ID="Content1" ContentPlaceHolderID="Header1" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

    <div style="background-image:url('../Images/body-bg.png');direction:rtl;padding-bottom:20px;padding-top:10px;border:1px solid #ccc;box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.075) inset;border-radius: 4px;">
        <div style="padding-right:350px; width:100%">
      
                         <asp:Image ID="Image1" runat="server"  src="../Images/CodeExpert.png" 
                    Width="30%" />
        </div>
          <div style="width:90%;margin:auto; background-image:url('../Images/content-bg.png');padding-right:8px;border:1px solid #ccc;box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.075) inset;border-radius: 4px;">
          <br />
          <br />
    <table  style="width: 100%; height: 246px;direction:rtl">
        <tr>
            <td align="right" style="height: 17px; width: 96px">
                <asp:Label ID="Label1" runat="server" ForeColor="#000099" Text="کد شهرستان"></asp:Label>
            </td>
            <td align="right" style="height: 17px; width: 69px">
                <asp:TextBox ID="Txcode" runat="server" Font-Size="Small" TabIndex="1" CssClass="textbox"></asp:TextBox>
            </td>
            <td align="left" style="height: 17px; width: 8px;">
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                    ControlToValidate="Txcode" ErrorMessage="*" ForeColor="Red"></asp:RequiredFieldValidator>
            </td>
            <td style="height: 17px">
                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                    ControlToValidate="Txcode" ErrorMessage="لطفا عدد وارد کنید" ForeColor="Red" 
                    ValidationExpression="[0-9]+"></asp:RegularExpressionValidator>
                </td>
        </tr>
        <tr>
            <td align="right" style="width: 96px">
                <asp:Label ID="Label2" runat="server" ForeColor="#000099" Text="نام شهرستان"></asp:Label>
            </td>
            <td align="right" style="width: 69px">
                <asp:TextBox ID="Txprov" runat="server" Font-Size="Small" TabIndex="2" CssClass="textbox"></asp:TextBox>
            </td>
            <td align="left" style="width: 8px">
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                    ControlToValidate="Txprov" ErrorMessage="*" ForeColor="Red"></asp:RequiredFieldValidator>
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td align="right" style="width: 96px; height: 17px;">
                </td>
            <td align="right" style="width: 69px; height: 17px;">
                <asp:Button ID="BtnReg" runat="server" Height="21px" style="margin-left: 0px" 
                    Text="ثبت" Width="150px" onclick="BtnReg_Click" TabIndex="3" CssClass="Button" />
                </td>
            <td align="left" style="height: 17px; width: 8px;">
                </td>
            <td style="height: 17px">
                &nbsp;</td>
        </tr>
        <tr>
            <td align="right" style="width: 96px">
                &nbsp;</td>
            <td align="right" style="width: 69px">
                <asp:Label ID="LbStatus" runat="server" BackColor="#3399FF" BorderColor="#000099" 
                    ForeColor="#FFFF66"></asp:Label>
            </td>
            <td style="width: 8px">
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td align="right" style="height: 17px; width: 96px">
                &nbsp;</td>
            <td align="right" style="height: 17px; width: 69px">
                </td>
            <td style="height: 17px; width: 8px;">
                </td>
            <td style="height: 17px">
                </td>
        </tr>
        <tr>
            <td align="center" class="style1" colspan="4" style="height: 116px">
               <div style="border: 1px solid #DEDEDE;border-radius:3px;box-shadow: 0px 0px 10px rgba(189, 189, 189, 0.4);padding :10px;width:440px;margin:auto;">
                <div  class="headerTable" >
                <div style="width:10%;float:right">
                    <asp:Image ID="Image2" runat="server" src="../Images/ava_default_1.jpg" Height="40px" />
                </div>
                <div style="width:50%;float:right">
                    <h3><asp:Label ID="Label10" runat="server" Text="کد شهرستانهای ثبت شده"></asp:Label></h3>
                </div>
                
                
                </div>
                <div   >
                <asp:GridView ID="GridView1" runat="server" CellPadding="4" ForeColor="#333333" 
                    GridLines="None" Width="440px" AutoGenerateColumns="False" 
                    DataSourceID="Provinces" AllowPaging="True">
                    <AlternatingRowStyle BackColor="White" />
                    <Columns>
                        <asp:BoundField DataField="Code" HeaderText="کد شهرستان" 
                            SortExpression="Code" />
                        <asp:BoundField DataField="ProvinceName" HeaderText="نام شهرستان" 
                            SortExpression="ProvinceName" />
                    </Columns>
                    <EditRowStyle BackColor="#2461BF" />
                    <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                    <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                    <RowStyle BackColor="#EFF3FB" />
                    <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                    <SortedAscendingCellStyle BackColor="#F5F7FB" />
                    <SortedAscendingHeaderStyle BackColor="#6D95E1" />
                    <SortedDescendingCellStyle BackColor="#E9EBEF" />
                    <SortedDescendingHeaderStyle BackColor="#4870BE" />
                </asp:GridView>
                <asp:SqlDataSource ID="Provinces" runat="server" 
                    ConnectionString="<%$ ConnectionStrings:CON %>" 
                    ProviderName="System.Data.SqlClient" 
                    SelectCommand="SELECT [ProvinceName], [Code] FROM [TblProvince]">
                </asp:SqlDataSource>
                </div>
                </div>
            </td>
        </tr>
    </table>
    </div>
    </div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="Header" Runat="Server">
</asp:Content>

